const app = getApp()
Page({
  data: {
    click:true,//图标点击事件
    inputShowed: false,  //初始文本框不显示内容
    currents:1,
    // 医院信息
    hospitals: [
      //lo表示地区序号，type表示医院类型
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"3","location":"解放大道1095号","name":"武汉同济医院","type":"三甲"},
      {"lo":"3","location":"解放大道1277号","name":"武汉协和医院","type":"三甲"},
      {"lo":"4","location":"张之洞路(原紫阳路)99号解放路238号","name":"武汉大学人民医院","type":"三甲"},
      {"lo":"4","location":"东湖路169号","name":"武汉大学中南医院","type":"三甲"},
      {"lo":"5","location":"水果湖街道123号","name":"广爱医院","type":"三甲"},
      {"lo":"2","location":"武胜路123号","name":"湖北省妇幼","type":"专科医院"},
      {"lo":"6","location":"金银湖路123号","name":"金银湖医院","type":"三甲医院"},
      {"lo":"6","location":"金银湖路456号","name":"东西湖区人民医院","type":"三甲医院"},
      {"lo":"7","location":"青山路888号","name":"青山区人民医院","type":"专科医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
      {"lo":"1","location":"江汉路6666号","name":"仁爱医院","type":"综合医院"},
    ],
    //城区分类
    cateItems:[
      {
        cate_id:1,
        cate_name:'江岸区',
      },
      {
        cate_id:2,
        cate_name:'江汉区'
      },
      {
        cate_id:3,
        cate_name:'硚口区'
      },
      {
        cate_id: 4,
        cate_name: '武昌区'
      },
      {
        cate_id: 5,
        cate_name: '洪山区'
      },
      {
        cate_id: 6,
        cate_name: '东西湖区'
      },
      {
        cate_id: 7,
        cate_name: '青山区'
      },
    ],
  },
      showTab:function(e){
        let id = e.target.dataset.id;
        this.setData({
          currents:id,
        })

          }
  
})

